'use strict';

function BlogListCtrl($scope, $http) {
	var url = '/ajax/blog/list';
	$http.get(url).then(function(res) {
		$scope.blogs = res.data.data;
	});
}
angular.module('hzyw')
.controller('BlogListCtrl', BlogListCtrl);